setTorchMode

fun setTorchMode(videoDevice: VideoDevice, enabled: Boolean): Boolean

Set the flash unit's torch mode of the given camera ID. Note : Some of the devices need the torch supported camera device to be open for the torch to be turned ON.

Parameters

videoDevice

: video device that supports torch

enabled

: true to turn on the torch mode. Set to false to turn off the torch mode.